home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3563 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.2 KB

  1. Path: qualcomm.com!usenet
  2. From: nabbasi@qualcomm.com (Nasser Abbasi)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Why C++/G++/?++
  5. Date: 24 Jan 1996 21:25:18 GMT
  6. Organization: QUALCOMM
  7. Message-ID: <4e683u$t75@qualcomm.com>
  8. References: <DLFosu.F6s@Federal.Unisys.COM>
  9. NNTP-Posting-Host: nabbasi.qualcomm.com
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.93.14
  12.  
  13. In article <DLFosu.F6s@Federal.Unisys.COM>, fergusoc says...
  14. >
  15. >I am not trying to start a flame war so please don't but I must wonder 
  16. >outloud
  17. >why one would choose C++ over something like Ada95? It sure as heck 
  18. >isn't because C++ is more mature. Hell, its changing (or has done so 
  19. >historically)
  20.  
  21. The simple answer to this is that becuase it is the language used
  22. at work. The Boss would not like it very much if one goes and use Ada
  23. while every one else in the project is coding C++.
  24.  
  25. I have been studying Ada95 for some time, (in my spare time since I have
  26. to use C++ at work). and I find Ada more natural and easier to 
  27. understand.
  28.  
  29. I find in C++, most of the time is spend in trickery things, (just like 
  30. with C), people can make lots of money in C++, mostly becuase they know 
  31. how to  avoid the pitfalls of C++. 
  32.  
  33. programming in C++ is like having to drive in crowded twisted street with 
  34. lots of cars zooming around you at high speed, you spend most of your 
  35. time and energy trying to avoid being hit or hitting others and less on 
  36. where you are heading to. 
  37.  
  38. I can give a piece of C++ code and ask a number of strong C++ programmer 
  39. s to tell me how many constructors calls are being made, and most likely 
  40. there will be 3 or 4 different answers..you need to watch for many things
  41. in C++, temporary objects all over the place, copy constructors, 
  42. side effects of constructors, which casting to use, inlining
  43. with static data problems, memory leaks, exeptions are not as natural
  44. as in Ada, class having the role of being a type and module, when to 
  45. use and refernce and when to use pointers, uses of static in C++ , and 
  46. with the new keywords being added in C++ such as explicit, and new
  47. castings being added (static, dynamic, and what else? 4 or 5 of them)
  48. and many zillion others annoying things.
  49.  
  50. The bottom like IMHO is that C++ is a tricky language, but it is well 
  51. worth it to know well for job security :)
  52.  
  53. Nasser
  54.  
  55.